var express = require('express')
var router = express.Router()

//验证是否能进入首页
router.get('/enterHome',(req,res) => {
    //获取session的user
    var user = req.session.user
    if(user === undefined) return res.json({status : 1})
    res.json({status : 0})
})


module.exports = router
